package org.mango.action;

import org.mango.base.BaseAction;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by meigang on 17/9/8.
 */
@Controller
@RequestMapping("/demo")
public class DemoAction extends BaseAction{

    @GetMapping("/sayhi")
    public String sayHello(){
        return "hello springboot!";
    }

    @GetMapping("/html")
    public String index() {
        this.setAttr("ctx",this.getCtx());
        return "demo";
    }
}
